# Set lib core link dependencies
set(libraries_to_link)

# Define core lib sources
set(source_files
    model/core.c
)

# Define core lib headers
set(header_files
    model/core.h
    model/dy-assert.h
    model/dy-fatal-error.h
)

# Build core lib
build_lib(
  LIBNAME core
  SOURCE_FILES ${source_files}
  HEADER_FILES ${header_files}
  LIBRARIES_TO_LINK ${libraries_to_link}
)

# Google Test.
build_ut_case(
  NAME ut-for-core
  SOURCE_FILES test/core-test.cc
  LIBRARIES_TO_LINK
    gtest_main
    ${libcore}
)
